<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>1024程序节游戏设计</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" th:href="@{/ui/css/amazeui.min.css}">
    <link th:href="@{/css/jquery-letterfx.min.css}" rel="stylesheet" type="text/css"/>
    <style type="text/css" media="screen">
        body {
            background-color: #A2D97E;
        }

    </style>
</head>
<body>
<div class="am-g" style="margin-top: 1rem;margin-bottom: 5rem">
    <div class="col-md-6 col-md-centered">
        第一题：猜数字写程序
    </div>
    <div class="col-md-6 col-md-centered">
        <form id="inputForm" th:action="@{/question}" th:method="post">
            <input type="hidden" name="userId" th:value="${session.user.id}">
            <input type="hidden" name="questionId" th:value="${question.id}">
            <input type="hidden" name="checkUrl" th:value="${question.checkUrl}">
            <input type="hidden" name="ctxPath" th:value="${#httpServletRequest.getContextPath()}">
            <div>
            <pre>
            public class FindOneQuestionCode {
                public static void main(String args[]){
                    String findStr = "f%oer7e%vbecr%o9s6s";
                    int b = <input type="text" name="userAnswer" style="width: 5rem"> &gt;&gt; 10;
                    for(int i=0;i &lt; findStr.length();i++){
                        String s = findStr.substring(i,i+1);
                        int t = i&b;
                        if(t==1){
                            System.out.print(s);
                        }
                    }
                System.out.println("");
                }
            }
            </pre>
                <div>
                    提示：让身为程序员的您，怎么都不能忘怀的数字！然后运行程序，记下打印结果
                </div>
                <button type="button" class="am-btn am-btn-success" onclick="operation()">运行打印结果</button>
                <div>
                    <span id="returnAnswer"></span>
                </div>
            </div>

            <br>
            <button type="button" class="am-btn am-btn-success" onclick="nextOperation()">依然猜不到的可以在群上求提示呢！下一题闯关
            </button>
            <br><br>
            <button type="button" class="am-btn am-btn-warning" onclick="exit()">你就这么容易放弃吗？不想玩了？</button>
        </form>
    </div>
</div>

<div class="am-modal am-modal-alert" tabindex="-1" id="my-alert">
    <div class="am-modal-dialog">
        <div class="am-modal-hd"></div>
        <div class="am-modal-bd">
            请输入答案！
        </div>
        <div class="am-modal-footer">
            <span class="am-modal-btn">确定</span>
        </div>
    </div>
</div>
<script type="text/javascript" th:src="@{/ui/js/zepto.min.js}"></script>
<script type="text/javascript" th:src="@{/ui/js/amazeui.js}"></script>
<script th:src="@{/jquery/my.js}"></script>
</body>
</html>